#!/bin/bash

if [ $# -ne 1 ]
then
    echo "Levantando maquina virtual SPARC, levantando Soporte de Red"
    qemu-system-sparc -hda debian_etch_sparc_small.qcow2 -net nic,macaddr=52:54:00:12:34:16,model=lance -net socket,mcast=230.0.0.1:1234 &
else
    echo "Levantando maquina virtual SPARC con soporte ssh en 4444"
    qemu-system-sparc -hda debian_etch_sparc_small.qcow2 -net nic,vlan=1,macaddr=52:54:00:12:34:16,model=lance -net user,vlan=1 -redir tcp:4444:10.0.2.25:22 &
fi

